package org.example.javafx.WebApi;

public enum ApiURL {
    getAllBookCategory(BaseURL.localhost,"/api/BookCategory/BookCategory/list");


    private final  BaseURL  baseURL;
    private final String url;

    ApiURL(BaseURL baseURL, String url){
        this.baseURL = baseURL;
        this.url = url;
    }

    public BaseURL getBaseURL() {
        return baseURL;
    }

    public String getUrl() {
        return url;
    }

    @Override
    public String toString() {
        return baseURL.getUrl() + url;
    }
}
